Skip to content

Add kubelogin-version.txt as a release asset to avoid GitHub API rate limits#749

Merged
bcho merged 1 commit into
mainfrom
copilot/investigate-kubelogin-discussion-748
Apr 30, 2026
Merged

Add kubelogin-version.txt as a release asset to avoid GitHub API rate limits#749
bcho merged 1 commit into
mainfrom
copilot/investigate-kubelogin-discussion-748

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 30, 2026

CI pipelines fetching the latest kubelogin version via the GitHub Releases API hit the 60 req/hour unauthenticated rate limit on shared runners, causing flaky builds.

Changes

  • release.yml: In the package-and-publish job, generate kubelogin-version.txt (containing only the bare version string, no trailing newline) and upload it alongside existing release assets.

Usage

KUBELOGIN_VERSION=$(curl -fsSL https://github.com/Azure/kubelogin/releases/latest/download/kubelogin-version.txt)
az aks install-cli --kubelogin-version "${KUBELOGIN_VERSION}"

This mirrors the pattern Kubernetes uses with https://dl.k8s.io/release/stable.txt and requires no GitHub API token or authentication.

@bcho bcho merged commit c225808 into main Apr 30, 2026
12 checks passed
@weinong weinong deleted the copilot/investigate-kubelogin-discussion-748 branch May 12, 2026 02:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants